package com.frain.springcloud.test.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.frain.springcloud.test.dao.UserMapper;
import com.frain.springcloud.test.entity.User;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User findUserById(Long id) {

        return userMapper.findOne(id);
    }

}
